<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"  />
    <title>Hello World</title>
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
   
<body>
     <div id="app"></div>
     <!-- 下面是我们的react代码 -->
     <script type="text/babel">

        class A extends React.Component{

            render(){
                console.log(this);
                return 1
            }

        }
        // function A(){

        //     return (<div>1132</div>)

        // }
        //挂载节点
        ReactDOM.render(
            <A />,
            document.getElementById('app')
        );
     </script>
</body>

</html>



<!-- open /Applications/Google\ Chrome.app/ --args --disable-web-security -->